package bisness;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import service.vo.MessageVo;
import service.vo.myService.Panduan.PandService;
import service.vo.myService.Panduan.impl.PandServiceImpl;
import struts.action.Action;
import struts.form.ActionForm;

public class PandAction implements Action {

	public String excure(HttpServletRequest request) {
		String url ="";
		PandService pand = new PandServiceImpl();
		Map<String,MessageVo> map =pand.getVo(request.getParameter("name"));
		Set<String> set = map.keySet();
		for (Iterator<String> it = set.iterator();it.hasNext();) {
			url = it.next();
			request.setAttribute("mess", map.get(url));
		}
		
		return url;
	}

	@Override
	public String excure(HttpServletRequest request, ActionForm form,
			Map<String, String> ActionPage) {
		// TODO Auto-generated method stub
		return null;
	}

	
	

}
